<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>OpenMesh: OpenMesh::Utils::NumLimitsT&lt; Scalar &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="logo_align.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="rwth_vci_rgb.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">OpenMesh
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('a03081.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="a03078.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">OpenMesh::Utils::NumLimitsT&lt; Scalar &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>This class provides the maximum and minimum values a certain scalar type (<code>int</code>, <code>float</code>, or <code>double</code>) can store.  
 <a href="a03081.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00743_source.html">Tools/Utils/NumLimitsT.hh</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a618be7579ce6a3a032f45c781d3f0bac"><td class="memTemplParams" colspan="2"><a id="a618be7579ce6a3a032f45c781d3f0bac"></a>
template&lt;&gt; </td></tr>
<tr class="memitem:a618be7579ce6a3a032f45c781d3f0bac"><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><b>is_float</b> ()</td></tr>
<tr class="separator:a618be7579ce6a3a032f45c781d3f0bac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91f72bf52bc98a6aa3fe351950c80147"><td class="memTemplParams" colspan="2"><a id="a91f72bf52bc98a6aa3fe351950c80147"></a>
template&lt;&gt; </td></tr>
<tr class="memitem:a91f72bf52bc98a6aa3fe351950c80147"><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><b>is_float</b> ()</td></tr>
<tr class="separator:a91f72bf52bc98a6aa3fe351950c80147"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a079fc24ff33a963bee51d7d6120c37b9"><td class="memTemplParams" colspan="2"><a id="a079fc24ff33a963bee51d7d6120c37b9"></a>
template&lt;&gt; </td></tr>
<tr class="memitem:a079fc24ff33a963bee51d7d6120c37b9"><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><b>is_float</b> ()</td></tr>
<tr class="separator:a079fc24ff33a963bee51d7d6120c37b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf20a7a1be200c07cde321669273c292"><td class="memTemplParams" colspan="2"><a id="acf20a7a1be200c07cde321669273c292"></a>
template&lt;&gt; </td></tr>
<tr class="memitem:acf20a7a1be200c07cde321669273c292"><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><b>is_signed</b> ()</td></tr>
<tr class="separator:acf20a7a1be200c07cde321669273c292"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30d9ad0165f9e338877c5c3d9674d22b"><td class="memTemplParams" colspan="2"><a id="a30d9ad0165f9e338877c5c3d9674d22b"></a>
template&lt;&gt; </td></tr>
<tr class="memitem:a30d9ad0165f9e338877c5c3d9674d22b"><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><b>is_signed</b> ()</td></tr>
<tr class="separator:a30d9ad0165f9e338877c5c3d9674d22b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a67c1050dfa28611bde388502dc62d99e"><td class="memTemplParams" colspan="2"><a id="a67c1050dfa28611bde388502dc62d99e"></a>
template&lt;&gt; </td></tr>
<tr class="memitem:a67c1050dfa28611bde388502dc62d99e"><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><b>is_signed</b> ()</td></tr>
<tr class="separator:a67c1050dfa28611bde388502dc62d99e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4a6cd17fe730baab5665e5850fb39e2"><td class="memTemplParams" colspan="2"><a id="ae4a6cd17fe730baab5665e5850fb39e2"></a>
template&lt;&gt; </td></tr>
<tr class="memitem:ae4a6cd17fe730baab5665e5850fb39e2"><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><b>is_signed</b> ()</td></tr>
<tr class="separator:ae4a6cd17fe730baab5665e5850fb39e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a80d6eade53a8b731788352a3d85e00"><td class="memTemplParams" colspan="2"><a id="a3a80d6eade53a8b731788352a3d85e00"></a>
template&lt;&gt; </td></tr>
<tr class="memitem:a3a80d6eade53a8b731788352a3d85e00"><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><b>is_signed</b> ()</td></tr>
<tr class="separator:a3a80d6eade53a8b731788352a3d85e00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a299caf73cac6f473ca40c8df8c5c9c97"><td class="memTemplParams" colspan="2"><a id="a299caf73cac6f473ca40c8df8c5c9c97"></a>
template&lt;&gt; </td></tr>
<tr class="memitem:a299caf73cac6f473ca40c8df8c5c9c97"><td class="memTemplItemLeft" align="right" valign="top">int&#160;</td><td class="memTemplItemRight" valign="bottom"><b>min</b> ()</td></tr>
<tr class="separator:a299caf73cac6f473ca40c8df8c5c9c97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adcde35956f2ff7c4624cad66d7944eec"><td class="memTemplParams" colspan="2"><a id="adcde35956f2ff7c4624cad66d7944eec"></a>
template&lt;&gt; </td></tr>
<tr class="memitem:adcde35956f2ff7c4624cad66d7944eec"><td class="memTemplItemLeft" align="right" valign="top">int&#160;</td><td class="memTemplItemRight" valign="bottom"><b>max</b> ()</td></tr>
<tr class="separator:adcde35956f2ff7c4624cad66d7944eec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a35f1885b497acac6607d87450d325aeb"><td class="memTemplParams" colspan="2"><a id="a35f1885b497acac6607d87450d325aeb"></a>
template&lt;&gt; </td></tr>
<tr class="memitem:a35f1885b497acac6607d87450d325aeb"><td class="memTemplItemLeft" align="right" valign="top">float&#160;</td><td class="memTemplItemRight" valign="bottom"><b>min</b> ()</td></tr>
<tr class="separator:a35f1885b497acac6607d87450d325aeb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a046c5f9ff5b18276ef82efacf93acd96"><td class="memTemplParams" colspan="2"><a id="a046c5f9ff5b18276ef82efacf93acd96"></a>
template&lt;&gt; </td></tr>
<tr class="memitem:a046c5f9ff5b18276ef82efacf93acd96"><td class="memTemplItemLeft" align="right" valign="top">float&#160;</td><td class="memTemplItemRight" valign="bottom"><b>max</b> ()</td></tr>
<tr class="separator:a046c5f9ff5b18276ef82efacf93acd96"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c46eeeca884d6b88a70b1d211f9e756"><td class="memTemplParams" colspan="2"><a id="a6c46eeeca884d6b88a70b1d211f9e756"></a>
template&lt;&gt; </td></tr>
<tr class="memitem:a6c46eeeca884d6b88a70b1d211f9e756"><td class="memTemplItemLeft" align="right" valign="top">double&#160;</td><td class="memTemplItemRight" valign="bottom"><b>min</b> ()</td></tr>
<tr class="separator:a6c46eeeca884d6b88a70b1d211f9e756"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa00363608ac33e1b8745e0f6f02d0d4a"><td class="memTemplParams" colspan="2"><a id="aa00363608ac33e1b8745e0f6f02d0d4a"></a>
template&lt;&gt; </td></tr>
<tr class="memitem:aa00363608ac33e1b8745e0f6f02d0d4a"><td class="memTemplItemLeft" align="right" valign="top">double&#160;</td><td class="memTemplItemRight" valign="bottom"><b>max</b> ()</td></tr>
<tr class="separator:aa00363608ac33e1b8745e0f6f02d0d4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a88db07419fbf5a3797f799901ccd7959"><td class="memItemLeft" align="right" valign="top"><a id="a88db07419fbf5a3797f799901ccd7959"></a>
static Scalar&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03081.html#a88db07419fbf5a3797f799901ccd7959">min</a> ()</td></tr>
<tr class="memdesc:a88db07419fbf5a3797f799901ccd7959"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the smallest <em>absolte</em> value a scalar type can store. <br /></td></tr>
<tr class="separator:a88db07419fbf5a3797f799901ccd7959"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32710b6611b5b17a5ecc25b076977bf1"><td class="memItemLeft" align="right" valign="top"><a id="a32710b6611b5b17a5ecc25b076977bf1"></a>
static Scalar&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03081.html#a32710b6611b5b17a5ecc25b076977bf1">max</a> ()</td></tr>
<tr class="memdesc:a32710b6611b5b17a5ecc25b076977bf1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the maximum <em>absolte</em> value a scalar type can store. <br /></td></tr>
<tr class="separator:a32710b6611b5b17a5ecc25b076977bf1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f594af0fc21c48b6eded77399d8efcd"><td class="memItemLeft" align="right" valign="top"><a id="a8f594af0fc21c48b6eded77399d8efcd"></a>
static bool&#160;</td><td class="memItemRight" valign="bottom"><b>is_float</b> ()</td></tr>
<tr class="separator:a8f594af0fc21c48b6eded77399d8efcd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3baa1385f5594819b4a5074bb9be5067"><td class="memItemLeft" align="right" valign="top"><a id="a3baa1385f5594819b4a5074bb9be5067"></a>
static bool&#160;</td><td class="memItemRight" valign="bottom"><b>is_integer</b> ()</td></tr>
<tr class="separator:a3baa1385f5594819b4a5074bb9be5067"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a79eb654b8481a92ee83b93f53d3eade4"><td class="memItemLeft" align="right" valign="top"><a id="a79eb654b8481a92ee83b93f53d3eade4"></a>
static bool&#160;</td><td class="memItemRight" valign="bottom"><b>is_signed</b> ()</td></tr>
<tr class="separator:a79eb654b8481a92ee83b93f53d3eade4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename Scalar&gt;<br />
class OpenMesh::Utils::NumLimitsT&lt; Scalar &gt;</h3>

<p>This class provides the maximum and minimum values a certain scalar type (<code>int</code>, <code>float</code>, or <code>double</code>) can store. </p>
<p>You can use it like this: </p><div class="fragment"><div class="line"><span class="preprocessor">#include &lt;OpenMesh/Utils/NumLimitsT.hh&gt;</span></div><div class="line"></div><div class="line"><span class="keywordtype">int</span>   float_min   = OpenMesh::NumLimitsT&lt;float&gt;::min();</div><div class="line"><span class="keywordtype">float</span> double_max  = OpenMesh::NumLimitsT&lt;double&gt;::max();</div></div><!-- fragment --><dl class="section note"><dt>Note</dt><dd>This functionality should be provided by std::numeric_limits. This template does not exist on gcc &lt;= 2.95.3. The class template <a class="el" href="a03081.html" title="This class provides the maximum and minimum values a certain scalar type (int, float, or double) can store. ">NumLimitsT</a> is just a workaround. </dd></dl>
</div><hr/>The documentation for this class was generated from the following file:<ul>
<li>OpenMesh/Tools/Utils/<a class="el" href="a00743_source.html">NumLimitsT.hh</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<hr>
<address>
<small>
<a href="http://www.rwth-graphics.de" style="text-decoration:none;">
</a>
Project <b>OpenMesh</b>, 
&copy;&nbsp; Computer Graphics Group, RWTH Aachen.
Documentation generated using 
<a class="el" href="http://www.doxygen.org/index.html">
<b>doxygen</b>
</a>.
</small>
</address>
</body>
</html>
